﻿#ifndef CHARTTHREAD_H
#define CHARTTHREAD_H

#include <QObject>
#include <QThread>
#include "chartworker.h"


class ChartThread : public QObject
{
    Q_OBJECT
public:
    explicit ChartThread(QObject *parent = 0);
    ~ChartThread();


    void Initialize();
    void start(QString file);
    void stop();

    void Terminate();
signals:
    void sigInitialize();       // 触发线程初始化
    void sigStart(QString file);            // 用于触发新线程中的耗时操作函数
    void sigStop();

public:
    QThread m_workThread;
    ChartWorker *m_worker;
public slots:
};

#endif
